package com.ygqh.baby.service;

import com.ygqh.baby.ao.AppType;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgUserAuths;

import java.util.List;

/**
 * @author admin
 */
public interface YgUserAuthsService {

	List<YgUserAuths> find();

	int findCount(String unionId, Long platformId);

	YgUserAuths findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgUserAuths ygUserAuths);

	int update(YgUserAuths ygUserAuths);

	int saveOrUpdate(YgUserAuths ygUserAuths);

	ResultSet<YgUserAuths> search(QueryInfo queryInfo, String q);

	String getOpenId(Long userId, String paltformNo, AppType appType);

	YgUserAuths findByUnionIdAndPlatform(String unionId, Long platformId);

	YgUserAuths findByUserId(Long userId, Long platformId);
}
